/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package miselaniapreg1y2;

/**
 *
 * @author Cinthya
 */
import java.util.Set;
import java.util.TreeSet;

public class PruebaComparable {
   public static void main(String[] args)
   {
      Set <Persona> lista = new TreeSet<Persona>();
      lista.add(new Persona(4));
      lista.add(new Persona(6));
      lista.add(new Persona(5));
      lista.add(new Persona(1));
      
      System.out.println(lista);
   }
   
}